package co.edu.udea.iw.rest;

import java.rmi.RemoteException;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import co.edu.udea.iw.dao.service.gerenteService;
import co.edu.udea.iw.exception.waDaoException;
import co.edu.udea.iw.exception.waServiceException;


@Path("gerente")
@Component
public class ServicioGerente {
	@Autowired
	private gerenteService gerenteService;

	@Produces(MediaType.APPLICATION_XML)
	@GET
	public String validar (String user, String password, String cedula) throws RemoteException {
		
		try {
			gerenteService.validar(user, password, cedula);
		} catch (waDaoException  e) {
			e.getMessage();
		}catch(waServiceException e){
			
			e.getMessage();
		}
		
		
		return "";
	}
	
	
	
}

